package com.shop.shoporder.common;

public class Encrypt {



    //加密
    public static String encrypt(String keyStr)
    {
        try {
            EncryptionDecryption encryptionDecryption=new EncryptionDecryption();
            String key = encryptionDecryption.encrypt(keyStr);
            return key;
        }
        catch (Exception ex)
        {
            return "Err";
        }
    }

    //解密
    public static String decrypt(String key)
    {
        try {
            EncryptionDecryption encryptionDecryption=new EncryptionDecryption();
            String keyStr = encryptionDecryption.decrypt(key);
            return keyStr;
        }
        catch (Exception ex)
        {
            return "Err";
        }
    }

}
